#ifndef __NUMERIC_LABEL_H__
#define __NUMERIC_LABEL_H__

#include <QFrame>

class InvaderLabel;

/**
 * Label which displays its value as a decimal number.  This class uses the
 * InvaderFont for the text.
 */
class NumericLabel : public QFrame
{
  Q_OBJECT

public:
  /**
   * @param label label to display with the number
   * @param parent parent of this NumericLabel
   */
  NumericLabel (const QString &label, QWidget *parent = 0);

  /**
   * @returns the value of the label
   */
  int getValue () const { return _value; }

public slots:
  /**
   * Sets the value of the NumericLabel
   */
  void setValue (int value);

private:
  InvaderLabel *_label;
  InvaderLabel *_valueLabel;
  int _value;
};

#endif
